CFLAGS = -I../../.build/include/js
#CXXLAGS = -I.. -DEXPORT_JS_API -DDEBUG -D_DEBUG -DTRACING

#LDFLAGS = -L../../.build/lib -ljs_static
#LDFLAGS = -L.. -L/usr/local/lib -L/usr/lib -lm -lstdc++ -export-dynamic `nspr-config --libs`  -ljs_static
LDFLAGS = -L../../.build/lib -lmozjs -L/usr/local/lib -L/usr/lib -lm -lstdc++ -export-dynamic `nspr-config --libs`  

SOURCES = main.c

all: main
	( LD_LIBRARY_PATH=../../.build/lib ./$? )

main: ${SOURCES}
	cc -o $@ $> ${CFLAGS} ${LDFLAGS}

clean:
	rm -f main


